<?php
    session_start();
    include_once '../../../../controlador/php/conexion/Conexion10.php';
    $con = new Conexion10();
    
    $listado= "SELECT OID, GEEDESCRI FROM GENESPECI
               ORDER BY GEEDESCRI";

    $res = $con->query($listado);
      
    while
        ($re = mssql_fetch_array($res)){
        $lista[] = array_map(utf8_encode,$re);
    }
    echo json_encode($lista);
    
       
    $con->cerrarConexion();
    
 
?>
